package org.microser.gataway.zuul.security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liujiamiao
 * @since 2020-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PermissionPath对象", description="")
public class PermissionPath implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "匹配的路径")
    private String path;

    @ApiModelProperty(value = "需要什么过滤器")
    private String filter;

    @ApiModelProperty(value = "需要什么权限（权限和角色）")
    private String permission;

    @ApiModelProperty(value = "过滤器/权限（0，1）")
    private Integer classify;


    @ApiModelProperty(value = "排序 0优先级最高")
    private Integer sort;


}
